import time
from flask_mail import Message
from app import celery, mail


@celery.task
def send_mail_task():
    time.sleep(2)
    # app = create_app('develop')
    msg = Message(subject='TESTING',
                  sender='linlinyue520@sohu.com',
                  recipients=['1129358071@qq.com'])
    msg.html = "<h1>Hello<h1>"
    mail.send(msg)
    return "Success"
